import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

//引入组件
import home from "../components/home/home.vue"
import city from "../components/city/city.vue"
import buyTicket from "../components/travelInfo/buyTicket.vue"
export default new Router({
  routes: [
    {
      path:"/",
      component:home
    },
    {
      path:"/city",
      component:city
    },
    {
      path:"/buyTicket/:id",
      component:buyTicket
    }
  ]
})
